package com.lxb;

public class ThreadTest {
    public static void main(String[] args) {
        MyThread myThread1 = new MyThread("mythread1");

        myThread1.start();

    }
}

class MyThread extends Thread{

    private String name;

    public MyThread(String name){
        this.name = name;
    }

    @Override
    public void run() {
        System.out.println("线程名称："+name+"---");
    }
}
